home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / H / TIME.H < prev    next >
C/C++ Source or Header  |  1997-03-31  |  667b  |  48 lines

  1. #ifndef __TIME_H
  2. #define __TIME_H
  3.  
  4.  
  5. #ifndef _SIZE_T
  6. #define _SIZE_T
  7. typedef unsigned size_t;
  8. #endif
  9.  
  10. #ifndef  _TIME_T
  11. #define  _TIME_T
  12. typedef long time_t;
  13. #endif
  14.  
  15. #ifndef  _CLOCK_T
  16. #define  _CLOCK_T
  17. typedef long clock_t;
  18. #endif
  19.  
  20. #define CLOCKS_PER_SEC 1000.0
  21. #define CLK_TCK        1000.0
  22.  
  23. struct tm
  24. {
  25.   int   tm_sec;
  26.   int   tm_min;
  27.   int   tm_hour;
  28.   int   tm_mday;
  29.   int   tm_mon;
  30.   int   tm_year;
  31.   int   tm_wday;
  32.   int   tm_yday;
  33.   int   tm_isdst;
  34. };
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. extern time_t   _time(time_t *__timer);
  41. extern clock_t  clock(void);
  42.  
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46.  
  47. #endif  /* __TIME_H */
  48.